package com.ccy.product.to;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author coder_ccy
 * @date 2022/7/20 15:16
 */
@Data
public class SkuEsModel { //common中
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;
    private boolean hasStock;   //   调用ware 微服务
    private Long hotScore;
    private Long brandId;
    private Long catalogId;
    private String brandName;   // brandService
    private String brandImg;
    private String catalogName;  // catalogService
    private List<Attr> attrs;   // 业务：查什么   查询和spuId相关联的，并且已经启用的attr

//    @Data
//    public static class Attr{   // new EsModel().new Attr()    new EsModel.Attr()
//
//    }
}
